package com.youhui.weixin.dao;

import com.youhui.weixin.domain.Admin;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

/**
 * Created by https://github.com/kuangcp on 17-9-26  下午3:02
 */
@RepositoryRestResource(path = "admin")
public interface AdminDao extends JpaRepository<Admin, Long>{
    public Admin findAdminByAdminId(Long id);

    public Admin findAdminByName(String name);

}
